home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000 #2
/
Ham Radio 2000 - Volume 2.iso
/
HAMV2
/
ANTENNA
/
YAGIU112
/
P_PFORM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-11
|
602b
|
25 lines
#include <stdio.h>
#include "yagi.h"
void print_relavent_performance_data(FILE *fp,char *s, int i, struct flags flag , struct performance_data data, double fitness, int Z_Q, int fitness_Q)
{
if(i!=0)
fprintf(fp,"%5d ",i);
else
{}
fprintf(fp,"%sG=%5.2lfdBi,FB=%6.2lfdB,",s,data.gain,data.fb);
fprintf(fp,"SL=%5.2lfdB,",data.sidelobe);
fprintf(fp,"SWR=%5.2lf",data.swr);
if(Z_Q==TRUE)
{
fprintf(fp,",Z=%6.2lf",data.r);
if(data.x<0.0)
fprintf(fp,"-j%6.2lf",-data.x);
else
fprintf(fp,"+j%6.2lf",data.x);
}
if(fitness_Q==TRUE)
fprintf(fp,",%.3lf",fitness);
fprintf(fp,"\n");
}